home *** CD-ROM | disk | FTP | other *** search
- Path: bigblue.oit.unc.edu!gibbs!swygert
- From: swygert@gibbs.oit.unc.edu (Kimberly Swygert Raines)
- Newsgroups: comp.lang.c++
- Subject: question about string-to-number conversion
- Date: 15 Feb 1996 17:34:10 GMT
- Organization: University of North Carolina, Chapel Hill
- Message-ID: <4fvqqi$17ku@bigblue.oit.unc.edu>
- NNTP-Posting-Host: gibbs.oit.unc.edu
-
- i have a question about using C++ to read in data from files which are
- not white-space delineated (in fact, some of the data will be in Fortran's
- scientific notation (-1.456e+2, for example, and some of the data may
- come from dialog boxes). we are unsure at this point as to how to read
- this data in. cin won't work, and while we have gotten hold of some
- sample programs that utilize the "atoi" command, it's only in the context
- of the argc and argv commands, and i think those are only needed if we
- run this on UNIX (which we're not). can someone supply me with some info
- on atoi, as well as any info about reading in string data? i may not be
- explaining this too clearly, as i'm part of a research group that's just
- now learning c++. we haven't found too much in the documentation that we
- have.....
-
- any info would be appreciated
-
- kimberly swygert
- swygert@gibbs.oit.unc.edu
-